]> dgit.raspbian.org Git - gnome-shell.git/commit
switchGestures: Do not hard-code allowed modes
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 20 Mar 2019 15:19:47 +0000 (15:19 +0000)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 11 Apr 2019 17:00:17 +0000 (17:00 +0000)
commitb77e4975f0cfb2d3b3ab987b31db88179f4185bb
treec6dfd760ba51a3fce701004418b273c9549eb2fb
parente83f2344f60abd4f2fce68a89bf393bf4bcc7a7d
switchGestures: Do not hard-code allowed modes

The touch/touchpad gestures to switch workspace currently hard-code
the modes in which we want the gestures to work. While these modes
are correct, the existing switch animation only works in NORMAL mode,
not in the overview where the window group is hidden. The easiest way
to address this is to handle both cases completely separately, namely
use separate actions in- and outside the overview.

Make the existing usable in that way by making the list of allowed
modes a constructor parameter.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/516
js/ui/windowManager.js